﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SilverMap
{
	/// <summary>
	/// Represents a scrollable tile map control for parallax scrolling games.
	/// </summary>
	public class UIScrollMap : UIMap
	{
		/// <summary>
		/// Draws the map items for the specified layer, where the map items are within the specified world bounds.
		/// </summary>
		/// <param name="elapsedTime">Elapsed time since last draw operation.</param>
		/// <param name="bounds">The world boundary in which map items should be retrieved.</param>
		/// <param name="layer">The layer to draw.</param>
		protected override void DrawLayer(TimeSpan elapsedTime, Rect bounds, int layer)
		{
			var scrollRate = GetScrollRate(layer);
			if (scrollRate == 0)
				base.DrawLayer(elapsedTime, bounds, layer);
			else
				DrawScrollLayer(elapsedTime, bounds, layer);
		}

		private void DrawScrollLayer(TimeSpan elapsedTime, Rect bounds, int layer)
		{
		}
	}
}
